# __coding':'utf-8__
from bs4 import BeautifulSoup;
import requests;

session = requests.session();
headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'zh-CN,zh;q=0.8,en;q=0.6',
    'Cache-Control': 'max-age=0',
    'Connection': 'keep-alive',
    'Cookie': '__utmt=1; _ga=GA1.2.1382333269.1520581891; _gid=GA1.2.575394353.1520581891; __utma=259174092.1382333269.1520581891.1520581909.1520581909.1; __utmb=259174092.13.10.1520581909; __utmc=259174092; __utmz=259174092.1520581909.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); csrftoken=XyeP9H5xjvLs6rASpD205ieSr0lYXlhlTx3ivf2GKG95mn1FzdsuD45NDjv3r0PK; __utma=12798129.648800336.1520581805.1520581805.1520581805.1; __utmb=12798129.12.10.1520581805; __utmc=12798129; __utmz=12798129.1520581805.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
    'Host': 'www.whatismybrowser.com',
    'Referer': 'https://www.whatismybrowser.com/',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1',
};
# r = session.get('https://www.whatismybrowser.com/', headers=headers);
# bsobj = BeautifulSoup(r.text, 'lxml')
# res = bsobj.find('div', {'id': 'holder'}).find('div', {'class': 'corset'});
# print(res);
headers = {};
r = session.get('https://cuiqingcai.com/5052.html', headers=headers);
bsobj = BeautifulSoup(r.text, 'lxml')
res = bsobj.find('article', {'class': 'article-content'}).find('ul').find_all('a');
for item in res:
    print(item);
